package com.cango.qutz.web.job.impl;

import com.cango.framework.base.dao.BaseDaoImpl;
import com.cango.qutz.web.entity.ScheduleJob;
import com.cango.qutz.web.entity.ScheduleParam;
import com.cango.qutz.web.job.IScheduleDefineService;
import com.cango.qutz.web.job.IScheduleDefineService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by weih on 2016/5/5.
 */
@Service("schduleDefineService")
public class ScheduleDefineServiceImpl extends BaseDaoImpl implements IScheduleDefineService {
    @Override
    public List<ScheduleJob> queryAllJobDefines(String clientCode) {
        Map<String, Object> param = new HashMap<String,Object>();
        param.put("clientCode",clientCode);
        return queryList("job.query_all_jobDefines",param);
    }

    @Override
    public List<ScheduleParam> queryParamByJob(String jobId) {
        Map<String, Object> param = new HashMap<String,Object>();
        param.put("jobId",jobId);
        return queryList("job.query_paramDefinesByJob",param);
    }
}
